﻿/*----------------------------------------------------------------
  //Copyright (C) 2012 赵国伟
  //文件功能描述：订单管理
  //创建人：赵国伟
  //生成时间：2012/03/17 16:15:00
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Shopping.Common;
using Shopping.Model;
using Shopping.BLL;

public partial class Manage_OrdersManage : BaseManagePage
{
    protected string SelectOptionOfPayMode; //支付模式选项
    protected string SelectOptionOfSendMode; //送货方式选项；
    protected string SelectOptionOfStatus; //订单状态 选项；
    protected string SelectOptionOfProvince; //省份选择选项；
    protected QueryOrdersAsPage q;  //分页查询对象；
    protected List<OrderInfo> listOfOrders; //订单列表数据；

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            q = new QueryOrdersAsPage(true);
            SelectOptionOfSendMode = DeliveryManage.QueryDeliveryToSelectOption(q.SendMode);
            SelectOptionOfPayMode = PayModesManage.QueryPayModeToSelectOption(q.PayMode);
            SelectOptionOfStatus = Utility.GetEnumToSelectOption<OrderStatus>(q.OrderStatus);
            SelectOptionOfProvince = ProvinceCityAreasManage.QueryProvincesToSelectOption("");
            OrdersManage bllOrder = new OrdersManage();
            listOfOrders = bllOrder.QueryOrderAsPage(q);
        }
    }
}